#ifndef VERTEX_H
#define VERTEX_H

#include<QGraphicsView>
#include<QGraphicsScene>
#include<QGraphicsEllipseItem>
#include<QStyleOptionGraphicsItem>
#include<QString>
#include<QDebug>

class Vertex:public QObject,public QGraphicsEllipseItem
{
    Q_OBJECT
private :
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);

public:
    Vertex(QPointF point,int r=5,QGraphicsEllipseItem* parent=nullptr);
    static int VertexCount;
    int id;
    QPointF point;
    int r;
    QGraphicsSimpleTextItem* tag;
    //QString text;
    QFont TagFont = QFont("Corbel", 13, QFont::Normal, true);
    QBrush RegBrush = QBrush(QColor(58, 143, 192));
    QBrush SelBrush = QBrush(QColor(208,90,110));
    bool selected;
};

#endif // VERTEX_H
